package com.coolxiaoyao.test.controller;

import com.coolxiaoyao.common.annotation.*;

/**
 * @author Kerry on 18/09/25
 */

@RestController("/path")
public class PathController {

    @GetMapping("/index/{path}/{two}/img")
    public Object index(@PathVariable("path") String path, @PathVariable("two") Integer two) {

        return "path get " + String.valueOf(path) + "  -  " + String.valueOf(two);

    }


    @PostMapping("/index/{path}/img")
    public Object indexPost(@PathVariable("path") String path) {
        return "path post " + String.valueOf(path);
    }

    @DeleteMapping("/index/{path}/img")
    public Object indexDelete(@PathVariable("path") String path) {
        return "path delete " + String.valueOf(path);
    }


    @PutMapping("/index/{path}/img")
    public Object indexPut(@PathVariable("path") String path) {
        return "path put " + String.valueOf(path);
    }


}
